<template>
    <div class="top">
        <div class="bx">

            <p>您需要登录才能继续访问</p>
            <span @click="fun">关闭</span>
        </div>
    </div>
</template>

<script>
export default {
    name:"topMsg",
    methods:{
        fun(){
            this.$router.push("/my")
        }
    }
}
</script>

<style lang="scss" scoped>
    .top {
        width: 100%;
        height: 1.04rem;
        background: #eeeeee;
    }
    .top .bx {
        width: 6.74rem;
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: auto;
    }
    .top .bx p {
        color: #000;
        font-weight: bold;
        font-size: 0.3rem;
    }
    .top .bx span {
        color: #999999;
        font-weight: bold;
        font-size: 0.3rem;
    }
</style>